//api接口地址
import axios  from "@/api/request.ts";
import type {RuleForm} from "@/api/type.ts"

//登录接口
export const login= (data:RuleForm)=>axios.post('/api/login',data);

//获取验证码接口
export const geCaptchaCode= ()=>axios.get('/api/captcha');

//获取用户信息接口
export const getUserinfo=()=>axios.get('/api/getUserInfo');


//获取路由接口
export const getRouters=()=>axios.get('/api/getRouters');

//退出登录接口
export const loginout= ()=>axios.post('/api/logout');
//export const loginout= ()=>axios.get('/api/auth/logout');



